export default defineEventHandler(async (event) => {
  const id = getRouterParam(event, 'id')
  
  // 模拟取消订单
  console.log(`取消订单: ${id}`)
  
  return {
    code: 200,
    message: '订单已取消',
    data: {
      id,
      status: 'cancelled',
    },
  }
})

